/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.prototype;
/**
 *
 * @author user
 */
public class Dog implements Prototype{
    private String dogName;
    public Dog(String name)
    {
        this.dogName = name;
    }
    @Override
    public Prototype doClone() {
        return new Dog(dogName);
    }
    
   public String toString()
   {
       return ("this dog says"+dogName);
   }
}
